package com.main.springannotation.A;

import com.main.springannotation.AB.AbInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created by admin on 2017/5/1.
 */
@Component("aa")
public class AA implements AbInterface{
    @Value("spring el表达式")
    @Autowired
    private String a;

    public String elString(){
        return "方法返回EL表达式调用";
    }

    @Override
    public void save() {
        System.out.println("AA");
    }
}
